package br.com.vti.leilao.model.business;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import br.com.vti.leilao.model.business.exception.ApplicationException;
import br.com.vti.leilao.model.dao.Dao;
import br.com.vti.leilao.model.entity.Ganhador;
import br.com.vti.leilao.view.util.MessageFactory;

/**
 *
 * @author ednardomatos
 */
@Component
@Transactional(readOnly = true)
public class GanhadorBusiness extends BusinessImpl<Ganhador, ApplicationException>{
    
    private static final long serialVersionUID = -3897867461694722465L;
    
    @Autowired
    @Qualifier("dao")
    private Dao<Ganhador> dao;
        
    @Autowired
    @Qualifier("messageFactory")
    private MessageFactory messageFactory;

    @Override
    public Dao<Ganhador> getDao() {
        return dao;
    }

    @Override
    public void setDao(Dao<Ganhador> dao) {
        this.dao = dao;
    }

    @Override
    public MessageFactory getMessageFactory() {
        return messageFactory;
    }

    @Override
    public void setMessageFactory(MessageFactory messageFactory) {
        this.messageFactory = messageFactory;
    }
    
}
